package net.maku.project.service.impl;

import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import net.maku.framework.mybatis.service.impl.BaseServiceImpl;
import net.maku.project.dao.StageDao;
import net.maku.project.entity.StageEntity;
import net.maku.project.service.StageService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lvpb
 * @version 1.0.0
 * @date 2024/7/9 20:34
 * @description StageServiceImpl
 */
@Service
public class StageServiceImpl extends BaseServiceImpl<StageDao, StageEntity> implements StageService {
    @Override
    public List<StageEntity> getAllStages() {
        return new LambdaQueryChainWrapper<>(baseMapper).orderByAsc(StageEntity::getSort).list();
    }
}
